package br.com.felix.fwt.ui.validation;

import java.util.List;

import br.com.felix.fwt.ui.BaseComponent;

public abstract class Validator {
	
	private BaseComponent[] components;
	
	public BaseComponent[] getComponents() {
		return components;
	}

	public void setComponents(BaseComponent ...components) {
		this.components = components;
	}

	public Validator(BaseComponent... components) {
		super();
		this.components = components;
	}

	public abstract List<ValidationError> isValid();
}
